home *** CD-ROM | disk | FTP | other *** search
/ Interactive Web Graphics with Shout 3D / Interactive Web Graphics With Shout 3D.iso / pc / Shout3Ddemo / Shout3d_runtime / codebase / models / stepInterpolatorTest / intStepInterpTest.s3d < prev    next >
Text File  |  2000-07-11  |  2KB  |  84 lines

  1. #VRML V2.0 utf8
  2.  
  3. Background{
  4.     color 1 1 1 
  5. }
  6.  
  7. Transform{
  8. scale 2 2 2
  9. translation 0 0 -5
  10. rotation 1 1 0 0.5
  11. children[
  12. DEF SWITCH Switch{
  13. whichChoice 0
  14. choice[
  15.     Shape{
  16.         appearance Appearance{ material Material{ diffuseColor 1 0 0 } }
  17.         geometry Box{}
  18.     }
  19.     Shape{
  20.         appearance Appearance{ material Material{ diffuseColor 1 1 0 } }
  21.         geometry Cone{}
  22.     }
  23.     Shape{
  24.         appearance Appearance{ material Material{ diffuseColor 0 1 0 } }
  25.         geometry Sphere{}
  26.     }
  27.     Shape{
  28.         appearance Appearance{ material Material{ diffuseColor 0 1 1 } }
  29.         geometry Cylinder{}
  30.     }
  31. ]
  32. }
  33. ]
  34. }
  35.  
  36. Transform{
  37. scale 2 2 2
  38. children[
  39.     Shape {
  40.     appearance    Appearance {
  41.       material    Material {
  42.         emissiveColor    1 1 1
  43.       }
  44.     }
  45.  
  46.     geometry    DEF ILS IndexedLineSet {            
  47.           coord    Coordinate {
  48.             point    [ -1 -1 0, 1 -1 0, 1 1 0, -1 1 0 ]
  49.           }          
  50.           coordIndex [ 0, 1, 2, 3, -2 ]
  51.           color    Color {
  52.             color    [ 1 1 0, 1 0 1, 0 1 1, 1 0 0 ]
  53.           }          
  54.     }
  55.     }
  56. ]
  57. }
  58.  
  59. DEF Camera01 Viewpoint{
  60. }
  61.  
  62.  
  63. DEF Combo_Dummy-TIMER TimeSensor{
  64. cycleInterval 5
  65. loop TRUE
  66. }
  67.  
  68. DEF INT_TRACK IntStepInterp{
  69. key [ 0, .25, .5, .75 ]
  70. keyValue [ 0, 1, 2, 3 ]
  71. }
  72.  
  73. DEF INT_ARRAY_TRACK IntArrayStepInterp{
  74. key [ 0, .25, .5, .75 ]
  75. keyValue [ 0 1 2 3 -2, 0 1 3 2 -2, 0 3 1 2 -2, 2 3 0 0 -2  ]
  76. }
  77.  
  78. ROUTE Combo_Dummy-TIMER.fraction_changed TO INT_ARRAY_TRACK.set_fraction
  79. ROUTE INT_ARRAY_TRACK.value TO ILS.coordIndex
  80. ROUTE Combo_Dummy-TIMER.fraction_changed TO INT_TRACK.set_fraction
  81. ROUTE INT_TRACK.value TO SWITCH.whichChoice
  82.  
  83.  
  84.